package cn.lanqiao.service;

import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import cn.lanqiao.entity.Pages;
import cn.lanqiao.entity.Student;

public interface StudentService {

	//展示所有数据
	public List<Student> getAllStudent();
	//分页
	public Pages<Student> studentPage( int indexPage , int pageSize , String searchkey);
	//查看详情
	public Student getStudentById(Integer studentId);
	//删除
	public int deleteStudent(Integer studentId);
	//修改
	public int updateStudent(Student student);
	//添加
	public int insertStudent(Student student);
   
	List<Student> selectStudent();


	boolean batchImport(String fileName, MultipartFile file) throws Exception;
	//学生修改密码
	int updatePwd(Student student);
	//添加学生信息
	int add(Student student);
	//根据id删除学生信息
	int deleteById(Integer studentId);
	//分页查询
	IPage<Student> PageStudent(Page<Student> page);
    //根据id查询学生信息
    Student findById(Integer studentId);
	
	
}
